var ajaxH={
    get:function (url,successFunc,dataType,errorFunc,beforeSendFunc,completeFunc) {
        $.ajax({
            url: url,
            type: "get",
            // data: form.serialize(),
            dataType: dataType,
            beforeSend: function ()
            {
                if(beforeSendFunc)
                    beforeSendFunc();
            },
            error: function (resp)
            {
                if(errorFunc)
                    errorFunc(resp)
            },
            complete:function (resp) {
                if(completeFunc)
                    completeFunc(resp)
            },
            success: function (data)
            {
                if(successFunc)
                    successFunc(data);
            }
        });
    },
    post:function (url,data,successFunc,dataType,errorFunc,beforeSendFunc,completeFunc) {
        $.ajax({
            url: url,
            type: "post",
            data: data,
            dataType: dataType,
            beforeSend: function ()
            {
                if(beforeSendFunc)
                    beforeSendFunc();
            },
            error: function (resp)
            {
                if(errorFunc)
                    errorFunc(resp)
            },
            complete:function (resp) {
                if(completeFunc)
                    completeFunc(resp)
            },
            success: function (data)
            {
                if(successFunc)
                    successFunc(data);
            }
        });
    }
}